<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>LibCDS: SimpleTree Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">LibCDS
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structSimpleTree.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">SimpleTree Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The implementation for basic binary search tree.  
 <a href="structSimpleTree.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:ab428fd1423b915b7a4d25955b73bcb78"><td class="memItemLeft" align="right" valign="top"><a class="el" href="simple__tree_8h.html#ade561e68da2347c9616c57a54790f581">SimTreeData</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSimpleTree.html#ab428fd1423b915b7a4d25955b73bcb78">pData</a></td></tr>
<tr class="memdesc:ab428fd1423b915b7a4d25955b73bcb78"><td class="mdescLeft">&#160;</td><td class="mdescRight">The container private information.  <a href="#ab428fd1423b915b7a4d25955b73bcb78">More...</a><br/></td></tr>
<tr class="separator:ab428fd1423b915b7a4d25955b73bcb78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a069c5cca27e6bb50c406693584ef3008"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSimpleTree.html#a069c5cca27e6bb50c406693584ef3008">insert</a> )(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, bool)</td></tr>
<tr class="memdesc:a069c5cca27e6bb50c406693584ef3008"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert an item into the tree.  <a href="#a069c5cca27e6bb50c406693584ef3008">More...</a><br/></td></tr>
<tr class="separator:a069c5cca27e6bb50c406693584ef3008"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a749f837f617b361f9d23c40bd6f259f0"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSimpleTree.html#a749f837f617b361f9d23c40bd6f259f0">search</a> )(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a> *)</td></tr>
<tr class="memdesc:a749f837f617b361f9d23c40bd6f259f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Search for the item having the same order with the designated one.  <a href="#a749f837f617b361f9d23c40bd6f259f0">More...</a><br/></td></tr>
<tr class="separator:a749f837f617b361f9d23c40bd6f259f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc3e5e9958f136af5dba590a37f1744a"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSimpleTree.html#acc3e5e9958f136af5dba590a37f1744a">delete</a> )(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, bool)</td></tr>
<tr class="memdesc:acc3e5e9958f136af5dba590a37f1744a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete the item having the same order with the designated one.  <a href="#acc3e5e9958f136af5dba590a37f1744a">More...</a><br/></td></tr>
<tr class="separator:acc3e5e9958f136af5dba590a37f1744a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a955b93a5a5b1e6a1c125950d4c629cf4"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSimpleTree.html#a955b93a5a5b1e6a1c125950d4c629cf4">maximum</a> )(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a> *)</td></tr>
<tr class="memdesc:a955b93a5a5b1e6a1c125950d4c629cf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the item having the maximum order of the tree.  <a href="#a955b93a5a5b1e6a1c125950d4c629cf4">More...</a><br/></td></tr>
<tr class="separator:a955b93a5a5b1e6a1c125950d4c629cf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e9da8950727c048d5d96c2f25cd9c9d"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSimpleTree.html#a0e9da8950727c048d5d96c2f25cd9c9d">minimum</a> )(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a> *)</td></tr>
<tr class="memdesc:a0e9da8950727c048d5d96c2f25cd9c9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the item having the minimum order of the tree.  <a href="#a0e9da8950727c048d5d96c2f25cd9c9d">More...</a><br/></td></tr>
<tr class="separator:a0e9da8950727c048d5d96c2f25cd9c9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13fffae9159e386abf479c9ffd03b0af"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSimpleTree.html#a13fffae9159e386abf479c9ffd03b0af">successor</a> )(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a> *)</td></tr>
<tr class="memdesc:a13fffae9159e386abf479c9ffd03b0af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the immediate successor of the designated item.  <a href="#a13fffae9159e386abf479c9ffd03b0af">More...</a><br/></td></tr>
<tr class="separator:a13fffae9159e386abf479c9ffd03b0af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90335ce9d49ed0619f0478606de471b4"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSimpleTree.html#a90335ce9d49ed0619f0478606de471b4">predecessor</a> )(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a> *)</td></tr>
<tr class="memdesc:a90335ce9d49ed0619f0478606de471b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the immediate predecessor of the designated item.  <a href="#a90335ce9d49ed0619f0478606de471b4">More...</a><br/></td></tr>
<tr class="separator:a90335ce9d49ed0619f0478606de471b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3875f93f1d4c26126655aae39a08913b"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSimpleTree.html#a3875f93f1d4c26126655aae39a08913b">size</a> )(struct _SimpleTree *)</td></tr>
<tr class="memdesc:a3875f93f1d4c26126655aae39a08913b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the number of stored item.  <a href="#a3875f93f1d4c26126655aae39a08913b">More...</a><br/></td></tr>
<tr class="separator:a3875f93f1d4c26126655aae39a08913b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5acf97627904420f5bb18ec1b327216"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSimpleTree.html#ad5acf97627904420f5bb18ec1b327216">set_compare</a> )(struct _SimpleTree *, int32_t(*)(<a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>))</td></tr>
<tr class="memdesc:ad5acf97627904420f5bb18ec1b327216"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the user defined item comparison method.  <a href="#ad5acf97627904420f5bb18ec1b327216">More...</a><br/></td></tr>
<tr class="separator:ad5acf97627904420f5bb18ec1b327216"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8853a892b55c1486b55236dca59d696a"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSimpleTree.html#a8853a892b55c1486b55236dca59d696a">set_destroy</a> )(struct _SimpleTree *, void(*)(<a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>))</td></tr>
<tr class="memdesc:a8853a892b55c1486b55236dca59d696a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the user defined item clean method.  <a href="#a8853a892b55c1486b55236dca59d696a">More...</a><br/></td></tr>
<tr class="separator:a8853a892b55c1486b55236dca59d696a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The implementation for basic binary search tree. </p>

<p>Definition at line <a class="el" href="simple__tree_8h_source.html#l00014">14</a> of file <a class="el" href="simple__tree_8h_source.html">simple_tree.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a class="anchor" id="ab428fd1423b915b7a4d25955b73bcb78"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="simple__tree_8h.html#ade561e68da2347c9616c57a54790f581">SimTreeData</a>* SimpleTree::pData</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The container private information. </p>

<p>Definition at line <a class="el" href="simple__tree_8h_source.html#l00016">16</a> of file <a class="el" href="simple__tree_8h_source.html">simple_tree.h</a>.</p>

</div>
</div>
<a class="anchor" id="a069c5cca27e6bb50c406693584ef3008"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SimpleTree::insert)(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, bool)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Insert an item into the tree. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="simple__tree_8h.html#a5403041ee9dd256c451889a5d53c75ce" title="Insert an item into the tree. ">SimTreeInsert</a> </dd></dl>

<p>Definition at line <a class="el" href="simple__tree_8h_source.html#l00020">20</a> of file <a class="el" href="simple__tree_8h_source.html">simple_tree.h</a>.</p>

</div>
</div>
<a class="anchor" id="a749f837f617b361f9d23c40bd6f259f0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SimpleTree::search)(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Search for the item having the same order with the designated one. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="simple__tree_8h.html#a5a26a654e5f784ff1fec73625a027ab0" title="Search for the item having the same order with the designated one. ">SimTreeSearch</a> </dd></dl>

<p>Definition at line <a class="el" href="simple__tree_8h_source.html#l00024">24</a> of file <a class="el" href="simple__tree_8h_source.html">simple_tree.h</a>.</p>

</div>
</div>
<a class="anchor" id="acc3e5e9958f136af5dba590a37f1744a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SimpleTree::delete)(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, bool)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Delete the item having the same order with the designated one. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="simple__tree_8h.html#afb81a382daf802759f9826c661ef7c74" title="Delete the item having the same order with the designated one. ">SimTreeDelete</a> </dd></dl>

<p>Definition at line <a class="el" href="simple__tree_8h_source.html#l00028">28</a> of file <a class="el" href="simple__tree_8h_source.html">simple_tree.h</a>.</p>

</div>
</div>
<a class="anchor" id="a955b93a5a5b1e6a1c125950d4c629cf4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SimpleTree::maximum)(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the item having the maximum order of the tree. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="simple__tree_8h.html#a2e6a210c04cefec27d948949e72515d2" title="Return the item having the maximum order of the tree. ">SimTreeMaximum</a> </dd></dl>

<p>Definition at line <a class="el" href="simple__tree_8h_source.html#l00032">32</a> of file <a class="el" href="simple__tree_8h_source.html">simple_tree.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0e9da8950727c048d5d96c2f25cd9c9d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SimpleTree::minimum)(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the item having the minimum order of the tree. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="simple__tree_8h.html#a12d9eb446ee0901adc45db968d62ad2f" title="Return the item having the minimum order of the tree. ">SimTreeMinimum</a> </dd></dl>

<p>Definition at line <a class="el" href="simple__tree_8h_source.html#l00036">36</a> of file <a class="el" href="simple__tree_8h_source.html">simple_tree.h</a>.</p>

</div>
</div>
<a class="anchor" id="a13fffae9159e386abf479c9ffd03b0af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SimpleTree::successor)(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the immediate successor of the designated item. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="simple__tree_8h.html#a6e62206c0c68c0c4aa575da6e83c17df" title="Return the item which is the immediate successor of the designated item. ">SimTreeSuccessor</a> </dd></dl>

<p>Definition at line <a class="el" href="simple__tree_8h_source.html#l00040">40</a> of file <a class="el" href="simple__tree_8h_source.html">simple_tree.h</a>.</p>

</div>
</div>
<a class="anchor" id="a90335ce9d49ed0619f0478606de471b4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SimpleTree::predecessor)(struct _SimpleTree *, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a> *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the immediate predecessor of the designated item. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="simple__tree_8h.html#a9e61e5f20ead969f2df3d697c46e68d1" title="Return the item which is the immediate predecessor of the designated item. ">SimTreePredecessor</a> </dd></dl>

<p>Definition at line <a class="el" href="simple__tree_8h_source.html#l00044">44</a> of file <a class="el" href="simple__tree_8h_source.html">simple_tree.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3875f93f1d4c26126655aae39a08913b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SimpleTree::size)(struct _SimpleTree *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the number of stored item. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="simple__tree_8h.html#abf9cdf9706dd9fd15c0d732beb548e43" title="Return the number of stored items. ">SimTreeSize</a> </dd></dl>

<p>Definition at line <a class="el" href="simple__tree_8h_source.html#l00048">48</a> of file <a class="el" href="simple__tree_8h_source.html">simple_tree.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad5acf97627904420f5bb18ec1b327216"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SimpleTree::set_compare)(struct _SimpleTree *, int32_t(*)(<a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>, <a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the user defined item comparison method. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="simple__tree_8h.html#a1ed803a976373ede2d70564eadcfc2e5" title="Set the user defined item comparison method. ">SimTreeSetCompare</a> </dd></dl>

<p>Definition at line <a class="el" href="simple__tree_8h_source.html#l00052">52</a> of file <a class="el" href="simple__tree_8h_source.html">simple_tree.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8853a892b55c1486b55236dca59d696a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* SimpleTree::set_destroy)(struct _SimpleTree *, void(*)(<a class="el" href="util_8h.html#a2583da5c1c14184068bda8cf681d5bed">Item</a>))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the user defined item clean method. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="simple__tree_8h.html#abaa00660ddf70bcaa3e8abb13a4f5579" title="Set the user defined item clean method. ">SimTreeSetDestroy</a> </dd></dl>

<p>Definition at line <a class="el" href="simple__tree_8h_source.html#l00056">56</a> of file <a class="el" href="simple__tree_8h_source.html">simple_tree.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="structSimpleTree.html">SimpleTree</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
